﻿using SnowTech.SmartTms.Repository.Core;
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;

/*
 * @author : http://www.chiner.com.cn
 * @date : 2022-9-14
 * @desc : 线路管理表
 */
namespace SnowTech.SmartTms.Repository.Domain
{
    [Table("TmsLine")]
    public partial class TmsLine : StringEntity
    {
        public TmsLine()
        {
            this.LineName = string.Empty; 
            this.Origin = string.Empty; 
            this.Destination = string.Empty;
            this.IsOutsource = 1;
            this.Shipper = string.Empty;
            this.Phone = string.Empty;
            this.Unit = string.Empty;
            this.Remark = string.Empty;
            this.UpdateName = string.Empty;
            this.UpdateTime = DateTime.Now;
            this.CreateName = string.Empty;
            this.CreateTime = DateTime.Now;
            this.State = 1;
            this.OriginAddress = string.Empty;
            this.DestinationAddress = string.Empty; 
        }

        /// <summary>
        /// 线路名称
        /// </summary>
        [Description("线路名称")]
        public string LineName { get; set; }
        /// <summary>
        /// 起点
        /// </summary>
        [Description("起点")]
        public string Origin { get; set; }
        /// <summary>
        /// 终点
        /// </summary>
        [Description("终点")]
        public string Destination { get; set; }
        /// <summary>
        /// 是否外协
        /// </summary>
        [Description("是否外协")]
        public int IsOutsource { get; set; }
        /// <summary>
        /// 货主姓名
        /// </summary>
        [Description("货主名称")]
        public string Shipper { get; set; }
        /// <summary>
        /// 货主手机号
        /// </summary>
        [Description("货主手机号")]
        public string Phone { get; set; }
        /// <summary>
        /// 货主单位
        /// </summary>
        [Description("货主单位")]
        public string Unit { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Description("备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [Description("修改人")]
        public string UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Description("修改时间")]
        public System.DateTime UpdateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Description("创建人")]
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        public System.DateTime CreateTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Description("状态")]
        public int State { get; set; } 
        /// <summary>
        /// 起点详细地址
        /// </summary>
        [Description("起点详细地址")]
        public string OriginAddress { get; set; }
        /// <summary>
        /// 终点详细地址
        /// </summary>
        [Description("终点详细地址")]
        public string DestinationAddress { get; set; }

    }
}